<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>
<body>
    <div id="app">
        data展示：{{id}}/{{name}}/{{sex}}<br/>
        数据操作：{{id + 1}}/{{name + ":" + sex}}/{{school.substring(2,4)}}
    </div>
    <script>
        const { createApp } = Vue
        
        createApp({
            data() {
                return {
                    id:100,
                    name:"lisi",
                    sex:"男",
                    school:"北京联合大学"
                }
            }
        }).mount('#app')
    </script>
</body>
</html>

